package com.maegul.dao.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "USER_SESSIONS")
public class UserSession implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private String username;

	@Column(name = "full_name")
	private String fullName;

	//TODO mirar las relaciones, PK, FK, y constraints en la base de datos primero.
	private List<MediaItem> cart;

	public UserSession() {
		// TODO llenar el carrito con lo que el usuario tenga en la base de
		// datos
		cart = new ArrayList<MediaItem>();
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public List<MediaItem> getCart() {
		return cart;
	}

	public void setCart(List<MediaItem> cart) {
		this.cart = cart;
	}

}
